# 定义当前 Makefile 所在目录的路径
MK_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))

# 定义默认目标为 build
.PHONY: build
all: build

build: install-dependencies
	@pnpm install && pnpm build

run: install-dependencies
	@pnpm install && pnpm dev

install-dependencies:
	@go install github.com/wailsapp/wails/v2/cmd/wails@latest

